using System.Collections;
using System.Collections.Generic;
using UnityEngine;


public class UIController : AbstractController
{
    private PanelRoot Panel;
    public PanelRoot root_panel => Panel;
    public UIController()
    {
        switch (SceneModelCommand.Instance.GetActiveSceneName())
        {
            case SceneName.MainMenuScene:
                Panel = new MainScenePanelRoot.MainPanel();
                break;
            /*case SceneName.MiddleScene:
                Panel = new MiddleScene.PanelRoot();
                break;*/
            /*case SceneName.BattleScene:
                Panel = new BattleScene.PanelRoot();
                break;*/
        }
    }


    protected override void AlwaysUpdate()
    {
        base.AlwaysUpdate();
        Panel.GameUpdate();
    }

    /*private IEnumerator WaitForCloseNotice()
    {

    }*/
}
